package net.huashitong.ssydt.provider.exam.mapper;


import net.huashitong.ssydt.exam.entity.SsExamCollectionQuestion;
import net.huashitong.ssydt.exam.entity.vo.QuestionCollectionListOutVO;
import net.huashitong.ssydt.exam.entity.vo.QuestionErrorCollectionListInVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SsExamCollectionQuestionMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SsExamCollectionQuestion record);

    int insertSelective(SsExamCollectionQuestion record);

    SsExamCollectionQuestion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SsExamCollectionQuestion record);

    int updateByPrimaryKey(SsExamCollectionQuestion record);

    List<QuestionCollectionListOutVO> countGroupByBelongYearMonthByUserId(QuestionErrorCollectionListInVO questionErrorCollectionListInVO);

    List<SsExamCollectionQuestion> findByUserIdWithBelongYearMonth(SsExamCollectionQuestion ssExamCollectionQuestion);

    void deleteByUserId(String userId);

    SsExamCollectionQuestion getByUserIdWithQuestionId(SsExamCollectionQuestion ssExamCollectionQuestion);

    int deleteByUserIdWithQuestionId(SsExamCollectionQuestion ssExamCollectionQuestion);
}